@HotelDescription
@RoomDetails
Feature: Room Details
Description: Testing myStays.com hotel description page
File name: happystays_roomdetails.feature
Relative path: happystays_roomdetails.feature
@HotelDescription
@RoomDetails
Scenario: As User, I can search Hotel and verify the hotel description page
Given
I can access to myStays.com
When
I enter username and password
And
I click on Sign In button
Then
I am on Home Page
And
I enter location as "Paris, France" and click on Search button
Then
I verify the hotel search results displayed
SyntaxError: The following error originated from your application code, not from Cypress.
) Unexpected token '('
When Cypress detects uncaught errors originating from your application it will automatically fail the current test.
This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event.
https://on.cypress.io/uncaught-exception-from-application
And
I verify Overview tab is active by default
And
I verify the room details displayed
@HotelDescription
@RoomDetails
Scenario: As User, I can search Hotel and verify the option to see hotel images
Given
I can access to myStays.com
When
I enter username and password
And
I click on Sign In button
Then
I am on Home Page
AssertionError: Timed out retrying after 30000ms: Expected to find element: `.location-display-container`, but never found it.
at HomePage.typeAndSelectLocation (cypress/e2e/pages/HomePage.js:49:41)
at Context.eval (cypress/e2e/common/CommonSteps.js:66:11)
at Context.resolveAndRunStepDefinition (node_modules/cypress-cucumber-preprocessor/lib/resolveStepDefinition.js:193:0)
at Context.eval (node_modules/cypress-cucumber-preprocessor/lib/createTestFromScenario.js:27:0)
Then
I verify the hotel search results displayed
Then
I click on See Avaialbility button
And
I verify the option to see hotel images
@HotelDescription
@RoomDetails
Scenario: As User, I can search Hotel and verify the Facilities displayed
Given
I can access to myStays.com
When
I enter username and password
And
I click on Sign In button
Then
I am on Home Page
AssertionError: Timed out retrying after 30000ms: Expected to find element: `.location-display-container`, but never found it.
at HomePage.typeAndSelectLocation (cypress/e2e/pages/HomePage.js:49:41)
at Context.eval (cypress/e2e/common/CommonSteps.js:66:11)
at Context.resolveAndRunStepDefinition (node_modules/cypress-cucumber-preprocessor/lib/resolveStepDefinition.js:193:0)
at Context.eval (node_modules/cypress-cucumber-preprocessor/lib/createTestFromScenario.js:27:0)
Then
I verify the hotel search results displayed
Then
I click on See Avaialbility button
And
I verify Overview tab is active by default
And
I verify the address displayed in Overview section
And
I verify maximum 12 facilities displayed in description page
Given
I can access to myStays.com
When
I enter username and password
And
I click on Sign In button
Then
I am on Home Page
And
I enter location as "Paris, France" and click on Search button
Then
I verify the hotel search results displayed
SyntaxError: The following error originated from your application code, not from Cypress.
) Unexpected token '('
When Cypress detects uncaught errors originating from your application it will automatically fail the current test.
This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event.
https://on.cypress.io/uncaught-exception-from-application
Then
I select room and verify selected room is highlighted
And
I verify Reserve button is displayed